feat: Use openedx_catalog app, backfill its CourseRuns [FC-0117]#38023
feat: Use openedx_catalog app, backfill its CourseRuns [FC-0117]#38023bradenmacdonald wants to merge 12 commits intoopenedx:masterfrom
Conversation
|
Thanks for the pull request, @bradenmacdonald! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. DetailsWhere can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
|
Thanks for the pull request, @bradenmacdonald! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. 🔘 Update the status of your PRYour PR is currently marked as a draft. After completing the steps above, update its status by clicking "Ready for Review", or removing "WIP" from the title, as appropriate. Where can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
c17ed68 to
08950bf
Compare
21f3493 to
c569920
Compare
2e97a3f to
be726d3
Compare
| and course_overview.display_name != cc.display_name | ||
| and cc.display_name != course_code | ||
| ): | ||
| # The runs have different names, so just use the course code as the common catalog course name. |
There was a problem hiding this comment.
My instinct here would be to backfill using the latest CourseRun's title rather than the course code. My thinking is this: in our new model, the CatalogCourse title represents the "default" CourseRun title, i.e. the CatalogCourse title is used when no CourseRun is specified. Thus, the CatalogCourse title should be backfilled to something that an instructor would actually want to use as the title when they're re-running the course, and I think that would be the latest CourseRun's title rather than the course code.
But, that assumes that course authors typically do not reflect the run into their course title (e.g., "Physics 101 - Spring 2027"), which I think is a safe assumption, but I could be wrong. What do you think @ormsbee @bradenmacdonald ?
There was a problem hiding this comment.
But, that assumes that course authors typically do not reflect the run into their course title (e.g., "Physics 101 - Spring 2027"), which I think is a safe assumption, but I could be wrong. What do you think @ormsbee @bradenmacdonald ?
I was actually thinking the opposite here, that authors sometimes do incorporate the run into their title in exactly that manner, because I'm pretty sure I've seen that, on instances which have lots of very similar runs (e.g. CCX use case with dozens of identical CCX variants of a course). But I just checked a few real instances and didn't see any examples of this, so maybe it's uncommon enough that we should just use the title as the default.
| from openedx_catalog import api as catalog_api | ||
| from openedx_catalog.models_api import CatalogCourse, CourseRun |
There was a problem hiding this comment.
I'm following our existing convention here, but it seems a tiny bit annoying to import some things from models_api and everything else from api when it's all part of the public API.
Description
This is the openedx-platform companion PR to openedx/openedx-core#479 . Please see that PR for more information.